﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcApplication2.Models.Faculty>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Facult
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Факультеты</h2>

    <table>
        <tr>
            <th></th>
            <th>
               Название
            </th>
            
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Редактировать", "Editfaculty", new { id = item.id })%> |
                <%: Html.ActionLink("Детали", "DetailsFacult", new { id = item.id })%> |
               <!-- <%: Html.ActionLink("Delete", "Deletefaculty", new { id = item.id })%>-->
                
            </td>
            
            <td>
                 <%: Html.ActionLink(item.name, "Speciality", new { id = item.id })%> 
            </td>
           
        </tr>
    
    <% } %>

    </table>

    

</asp:Content>

